package com.kefu.chat.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author CodeGenerator
 * @date 2022/08/15
 */
@Data
@TableName(value="chat_conversation_msg")
@ApiModel(description = "内部会话消息")
public class ChatConversationMsg implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@TableId(value="msg_id",type=IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String msgId;
    
    @TableField(value="tenant_id")
    @ApiModelProperty(value = "")
    private String tenantId;
    
    @TableField(value="conversation_id")
    @ApiModelProperty(value = "内部会话id")
    private String conversationId;
    
    @TableField(value="msg_time")
    @ApiModelProperty(value = "消息时间")
    private Long msgTime;
    
    @TableField(value="sender")
    @ApiModelProperty(value = "发送者id")
    private String sender;
    
    @TableField(value="sender_name")
    @ApiModelProperty(value = "发送者名称")
    private String senderName;
    
    @TableField(value="msg_type")
    @ApiModelProperty(value = "消息类型：1.文字，2图片，3富文本，4文件，5音频，6视频")
    private Integer msgType;
    
    @TableField(value="file_name")
    @ApiModelProperty(value = "文件名字")
    private String fileName;
    
    @TableField(value="audio_duration")
    @ApiModelProperty(value = "音频时长，秒")
    private Integer audioDuration;
    
    @TableField(value="recall_flag")
    @ApiModelProperty(value = "消息撤回标志 0=无，1=有")
    private Integer recallFlag;
    
    @TableField(value="msg_content")
    @ApiModelProperty(value = "消息内容")
    private String msgContent;

    @TableField(exist = false)
    @ApiModelProperty(value = "发送者类型,1:其他客服 2.自己")
    private int senderType = 1 ;
}